<?php
/*
 * @Author: Zhang Yingying
 * @Date: 2020-11-25 22:28:02
 * @LastEditors: Zhang Yingying
 * @LastEditTime: 2020-11-28 15:31:23
 */

namespace app\model;

use app\model\BaseModel;

class Products2Assets extends BaseModel{

  protected $table = 'Products2Assets';

  public function saveEntity($entity) {
    $model = new Products2Assets();
    $model ->assetId = $entity ->assetId;
    $model ->productId = $entity ->productId;
    $model->save();
    return $model;
  }

}

